Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(session): Safari bug with delayed set of cookies #2179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smalluban
Copy link
Collaborator

@smalluban smalluban commented Jan 10, 2025

Fixes the bug on iOS Safari 18.x, which makes the account section on settings page out of date after sucessful login.

Reproduce path (on production):

  1. Open Account section on Settings page
  2. Click login button
  3. After going back to Settings, the page still shows a status to login in

This PR also changes a patch for another bug to be feature-based, rather than fixed to the platform (in the case Safari would fix the bug). For example, the problem with starting point from wrong date for cookies is fixed in 18.x (src/utils/api.js#L60)

IMPORTANT NOTICE: There is still significant delay between old state and current one (we pull cookies up to 10 seconds to try it if they are there). Currently, there is no "better" way to that.

@smalluban smalluban requested a review from AdamGhst January 10, 2025 08:17
@smalluban smalluban added the package CI: create extension packages label Jan 10, 2025
@smalluban smalluban requested a review from chrmod January 10, 2025 08:17
@smalluban
Copy link
Collaborator Author

@AdamGhst As Safari requires builds, I'll test it. However, I would like you to test other platforms to be sure that login/logout and sync (it uses cookies) works as before.

Copy link

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package CI: create extension packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant